package proguide.library;

import java.util.Map;

import org.json.JSONObject;

import com.google.gson.Gson;

public class WSResponse
{
	public static WSResponse parse_response( String p_response )
	{
		WSResponse response_object = null;

		try
		{
			JSONObject json = new JSONObject( p_response );
			Gson gson = new Gson( );
			response_object = gson.fromJson( json.getString( "d" ), WSResponse.class );
		}
		catch ( Exception err )
		{
			response_object = null;
		}

		return response_object;
	}
	
	public boolean success;
	public String  message;
	public Map<String, String> data;
}